define(["app/utils/HttpClientUtils"],function (hc) {

	
	return {
		getRoomDetails: function(roomuuid, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/room_details";
			var body = {
				"roomuuid": roomuuid
			};
		
			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);
		},
		createRoom: function(roomtype, pwd, fee, name, starttime,unionid,orgUuid, callback_Func){
			var url = $.wjtBaseBackend + "/wjt/room_create";
			var body = {
				"unionid": unionid,
				"roomtype": roomtype,
				"name": name,
				"time": starttime,
				"orguuid": orgUuid
			};
			if(roomtype == 2){
				body.password = pwd;
			}else if(roomtype == 3){
				body.fee = fee;
			}
			
			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);
		},
		updateRoomStatus: function(status,roomuuid, callback_Func){

			var url = $.wjtBaseBackend + "/wjt/room_status";
			var body = {
				"roomuuid": roomuuid,
				"status": status
			};
		
			hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);
		}
	};

});
